package com.example.demo.controller.discuss.communication;

import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.example.demo.base.config.auth.UserInfoShareHolder;
import com.example.demo.base.login.dto.UserCache;
import com.example.demo.domain.entity.Communication;
import com.example.demo.domain.entity.User;
import com.example.demo.domain.entity.UserCommunicationFavors;
import com.example.demo.dto.ResponseDto;
import com.example.demo.param.CommunicationParam;
import com.example.demo.service.UserCommunicationFavorsService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author: ksf
 * @Date: 2024/08/10/19:28
 * @Description:
 */

@RequestMapping("/userCommunicationFavors")
@RestController
public class UserCommunicationFavorsController {

    @Resource
    private UserCommunicationFavorsService userCommunicationFavorsService;

    /**
     * 查询用户收藏了哪些帖子
     * @param
     * @return
     */

    @PostMapping()
    ResponseDto queryFavors(){
        UserCache userInfo = UserInfoShareHolder.getUserInfo();
        User user = userInfo.getUser();
        System.out.println(user.toString());
        return new ResponseDto<>().buildSucceedHasData(true);
    }
}
